const fs = require('fs')






const p = new Promise((resolve, reject)=>{
    fs.readFile("./10_rest参数.html", (err, data)=>{
        resolve(data)
    })
})

p.then(value => {
    return new Promise((resolve, reject) => {
        fs.readFile("./2_let实践案例.html", (err, data)=>{
            resolve([value, data])
        })
    })
}).then(value => {
    return new Promise((resolve, reject) => {
        fs.readFile("./4_es解构赋值.html", (err, data)=>{
            value.push(data)
            resolve(value)
        })
    })
}).then(value => {
    console.log(value.toString())
})














